package com.orange.flyWeightPatterns.useFlyWeight;

import com.orange.flyWeightPatterns.Pool;

import java.util.HashMap;

/**
 * @Description: 台球桌
 */
public class UseFlyWeightPoolTable {
    //台球集合
    private HashMap<Pool,positon> hashMap;

    public UseFlyWeightPoolTable(HashMap<com.orange.flyWeightPatterns.Pool,positon> hashMap){
        this.hashMap=hashMap;
    }

    public static class positon{
        //记录x轴的值
        private Integer x;

        //记录y轴的值
        private Integer y;

        //开始get和set

        public Integer getX() {
            return x;
        }

        public void setX(Integer x) {
            this.x = x;
        }

        public Integer getY() {
            return y;
        }

        public void setY(Integer y) {
            this.y = y;
        }
    }
}
